package com.sneaker.shower.entity.domain.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sneaker.shower.entity.domain.BaseUserDomain;
import lombok.*;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("user_level")
public class UserLevelDO extends BaseUserDomain {

    // 等级类型， 1：普通会员1级， 2：普通会员2级， 3：普通会员3级， 4：黑卡会员1级， 5：黑卡会员2级
    private Integer levelCode;

    // 当前等级余额
    private BigDecimal levelAmount;

    // 当前等级所享折扣
    private BigDecimal levelDiscount;

    private Integer version;

}
